
#include <BEntry>
#include "member_BEntry.h"

using namespace BWE;

#define member					(*(member_BEntry*)_ptr)
#define member_allocate()		_ptr = new member_BEntry
#define member_release()		delete (member_BEntry*)_ptr

BEntry::BEntry()
{
	member_allocate();
}
BEntry::~BEntry()
{
	member_release();
}

void BEntry::setAttrib(Attrib attrib)
{
	if (member.attrib != attrib)
	{
		member.attrib = attrib;
	}
}
Attrib BEntry::attrib() const
{
	return member.attrib;
}

void BEntry::setPath(const BString& path)
{
	if(member.path != path)
	{
		member.path = path;
	}
}
const BString& BEntry::path() const
{
	return member.path;
}

void BEntry::setDate(const BDate& date)
{
	member.date = date;
}
const BDate& BEntry::date() const
{
	return member.date;
}

void BEntry::setTime(const BTime& time)
{
	member.time = time;
}
const BTime& BEntry::time() const
{
	return member.time;
}

void BEntry::setSize(size_t size)
{
	member.size = size;
}
size_t BEntry::size() const
{
	return member.size;
}

